
#include <QApplication>
#include <QDebug>


#include "mainwidget.h"
#include "debug.h"
#include "loginwidget.h"
#include "model/datacenter.h"
#include "network/netClient.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    // qDebug() << model::makeId("M") << "\n";
    // LOG_DEBUG << "aaaaaa";

#if TEST_LOGIN
    LoginWidget* login = new LoginWidget();
    login->show();
#else
    MainWidget* w = MainWidget::getInstance();
    w->show();
#endif

#if TEST_FILE
    model::datacenter* dataCenter = model::datacenter::getInstance();
    dataCenter->loadDataFile();
#endif

#if TEST_NETWORK
    network::NetClient nc(nullptr);
    nc.ping();
#endif
    return a.exec();
}
